#ifndef TICKERTH_H
#define TICKERTH_H
#include<QThread>

/********************************************************
 * @brief The TickerTh class
 * 定时时间到 发送一个wakeUp的信号,独立的线程
 * ticker 定时时间到,ti
 ********************************************************/
class TickerTh :public QThread
{
    Q_OBJECT

public:
    TickerTh(long tt, QThread *parent = nullptr );
    static const  long Hour_Per_Sec = 3600;
protected:
    void run()override;
signals:
    void wakeUp();

private:
    long slTT;   //睡眠时长
};

#endif // TICKERTH_H
